.class public Lrexsee/multimedia/RexseeVideoPlayer;
.super Ljava/lang/Object;
.source "RexseeVideoPlayer.java"

# interfaces
.implements Lrexsee/core/browser/clazz/JavascriptInterface;


# static fields
.field private static final INTERFACE_NAME:Ljava/lang/String; = "VideoPlayer"


# instance fields
.field private final mBrowser:Lrexsee/core/browser/Browser;

.field private final mContext:Landroid/content/Context;

.field private mVideoDialog:Lrexsee/multimedia/VideoDialog;


# direct methods
.method public constructor <init>(Lrexsee/core/browser/Browser;)V
    .locals 1
    .param p1, "browser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 28
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 26
    const/4 v0, 0x0

    iput-object v0, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mVideoDialog:Lrexsee/multimedia/VideoDialog;

    .line 29
    iput-object p1, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mBrowser:Lrexsee/core/browser/Browser;

    .line 30
    invoke-virtual {p1}, Lrexsee/core/browser/Browser;->getContext()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mContext:Landroid/content/Context;

    .line 31
    return-void
.end method

.method private checkStatus()Z
    .locals 3

    .prologue
    .line 34
    iget-object v0, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mVideoDialog:Lrexsee/multimedia/VideoDialog;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mVideoDialog:Lrexsee/multimedia/VideoDialog;

    iget-object v0, v0, Lrexsee/multimedia/VideoDialog;->videoView:Lrexsee/multimedia/VideoView;

    iget-object v0, v0, Lrexsee/multimedia/VideoView;->mediaPlayer:Landroid/media/MediaPlayer;

    if-nez v0, :cond_1

    .line 35
    :cond_0
    iget-object v0, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/multimedia/RexseeVideoPlayer;->getInterfaceName()Ljava/lang/String;

    move-result-object v1

    const-string v2, "The video player is not started, please call start()."

    invoke-virtual {v0, v1, v2}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    .line 36
    const/4 v0, 0x0

    .line 38
    :goto_0
    return v0

    :cond_1
    const/4 v0, 0x1

    goto :goto_0
.end method


# virtual methods
.method public getCurrentPosition()I
    .locals 4

    .prologue
    const/4 v3, -0x1

    .line 109
    invoke-direct {p0}, Lrexsee/multimedia/RexseeVideoPlayer;->checkStatus()Z

    move-result v1

    if-nez v1, :cond_0

    move v1, v3

    .line 114
    :goto_0
    return v1

    .line 111
    :cond_0
    :try_start_0
    iget-object v1, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mVideoDialog:Lrexsee/multimedia/VideoDialog;

    iget-object v1, v1, Lrexsee/multimedia/VideoDialog;->videoView:Lrexsee/multimedia/VideoView;

    iget-object v1, v1, Lrexsee/multimedia/VideoView;->mediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v1}, Landroid/media/MediaPlayer;->getCurrentPosition()I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v1

    goto :goto_0

    .line 112
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 113
    .local v0, "e":Ljava/lang/Exception;
    iget-object v1, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/multimedia/RexseeVideoPlayer;->getInterfaceName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2, v0}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    move v1, v3

    .line 114
    goto :goto_0
.end method

.method public getDuration()I
    .locals 4

    .prologue
    const/4 v3, -0x1

    .line 100
    invoke-direct {p0}, Lrexsee/multimedia/RexseeVideoPlayer;->checkStatus()Z

    move-result v1

    if-nez v1, :cond_0

    move v1, v3

    .line 105
    :goto_0
    return v1

    .line 102
    :cond_0
    :try_start_0
    iget-object v1, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mVideoDialog:Lrexsee/multimedia/VideoDialog;

    iget-object v1, v1, Lrexsee/multimedia/VideoDialog;->videoView:Lrexsee/multimedia/VideoView;

    iget-object v1, v1, Lrexsee/multimedia/VideoView;->mediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v1}, Landroid/media/MediaPlayer;->getDuration()I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v1

    goto :goto_0

    .line 103
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 104
    .local v0, "e":Ljava/lang/Exception;
    iget-object v1, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/multimedia/RexseeVideoPlayer;->getInterfaceName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2, v0}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    move v1, v3

    .line 105
    goto :goto_0
.end method

.method public getInheritInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 0
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 17
    return-object p0
.end method

.method public getInterfaceName()Ljava/lang/String;
    .locals 2

    .prologue
    .line 13
    new-instance v0, Ljava/lang/StringBuilder;

    iget-object v1, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget-object v1, v1, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v1, v1, Lrexsee/core/application/Resource;->prefix:Ljava/lang/String;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v1, "VideoPlayer"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getNewInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 1
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 21
    new-instance v0, Lrexsee/multimedia/RexseeVideoPlayer;

    invoke-direct {v0, p1}, Lrexsee/multimedia/RexseeVideoPlayer;-><init>(Lrexsee/core/browser/Browser;)V

    return-object v0
.end method

.method public getVideoHeight()I
    .locals 4

    .prologue
    const/4 v3, -0x1

    .line 127
    invoke-direct {p0}, Lrexsee/multimedia/RexseeVideoPlayer;->checkStatus()Z

    move-result v1

    if-nez v1, :cond_0

    move v1, v3

    .line 132
    :goto_0
    return v1

    .line 129
    :cond_0
    :try_start_0
    iget-object v1, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mVideoDialog:Lrexsee/multimedia/VideoDialog;

    iget-object v1, v1, Lrexsee/multimedia/VideoDialog;->videoView:Lrexsee/multimedia/VideoView;

    iget-object v1, v1, Lrexsee/multimedia/VideoView;->mediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v1}, Landroid/media/MediaPlayer;->getVideoHeight()I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v1

    goto :goto_0

    .line 130
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 131
    .local v0, "e":Ljava/lang/Exception;
    iget-object v1, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/multimedia/RexseeVideoPlayer;->getInterfaceName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2, v0}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    move v1, v3

    .line 132
    goto :goto_0
.end method

.method public getVideoWidth()I
    .locals 4

    .prologue
    const/4 v3, -0x1

    .line 118
    invoke-direct {p0}, Lrexsee/multimedia/RexseeVideoPlayer;->checkStatus()Z

    move-result v1

    if-nez v1, :cond_0

    move v1, v3

    .line 123
    :goto_0
    return v1

    .line 120
    :cond_0
    :try_start_0
    iget-object v1, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mVideoDialog:Lrexsee/multimedia/VideoDialog;

    iget-object v1, v1, Lrexsee/multimedia/VideoDialog;->videoView:Lrexsee/multimedia/VideoView;

    iget-object v1, v1, Lrexsee/multimedia/VideoView;->mediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v1}, Landroid/media/MediaPlayer;->getVideoWidth()I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v1

    goto :goto_0

    .line 121
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 122
    .local v0, "e":Ljava/lang/Exception;
    iget-object v1, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/multimedia/RexseeVideoPlayer;->getInterfaceName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2, v0}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    move v1, v3

    .line 123
    goto :goto_0
.end method

.method public isLooping()Z
    .locals 1

    .prologue
    .line 140
    invoke-direct {p0}, Lrexsee/multimedia/RexseeVideoPlayer;->checkStatus()Z

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x0

    .line 141
    :goto_0
    return v0

    :cond_0
    iget-object v0, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mVideoDialog:Lrexsee/multimedia/VideoDialog;

    iget-object v0, v0, Lrexsee/multimedia/VideoDialog;->videoView:Lrexsee/multimedia/VideoView;

    iget-object v0, v0, Lrexsee/multimedia/VideoView;->mediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->isLooping()Z

    move-result v0

    goto :goto_0
.end method

.method public isPlaying()Z
    .locals 1

    .prologue
    .line 136
    invoke-direct {p0}, Lrexsee/multimedia/RexseeVideoPlayer;->checkStatus()Z

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x0

    .line 137
    :goto_0
    return v0

    :cond_0
    iget-object v0, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mVideoDialog:Lrexsee/multimedia/VideoDialog;

    iget-object v0, v0, Lrexsee/multimedia/VideoDialog;->videoView:Lrexsee/multimedia/VideoView;

    iget-object v0, v0, Lrexsee/multimedia/VideoView;->mediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->isPlaying()Z

    move-result v0

    goto :goto_0
.end method

.method public pause()Z
    .locals 4

    .prologue
    const/4 v2, 0x1

    const/4 v3, 0x0

    .line 68
    invoke-direct {p0}, Lrexsee/multimedia/RexseeVideoPlayer;->checkStatus()Z

    move-result v1

    if-nez v1, :cond_0

    move v1, v3

    .line 75
    :goto_0
    return v1

    .line 69
    :cond_0
    iget-object v1, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mVideoDialog:Lrexsee/multimedia/VideoDialog;

    iget-object v1, v1, Lrexsee/multimedia/VideoDialog;->videoView:Lrexsee/multimedia/VideoView;

    iget-object v1, v1, Lrexsee/multimedia/VideoView;->mediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v1}, Landroid/media/MediaPlayer;->isPlaying()Z

    move-result v1

    if-nez v1, :cond_1

    move v1, v2

    goto :goto_0

    .line 71
    :cond_1
    :try_start_0
    iget-object v1, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mVideoDialog:Lrexsee/multimedia/VideoDialog;

    iget-object v1, v1, Lrexsee/multimedia/VideoDialog;->videoView:Lrexsee/multimedia/VideoView;

    iget-object v1, v1, Lrexsee/multimedia/VideoView;->mediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v1}, Landroid/media/MediaPlayer;->pause()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move v1, v2

    .line 72
    goto :goto_0

    .line 73
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 74
    .local v0, "e":Ljava/lang/Exception;
    iget-object v1, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/multimedia/RexseeVideoPlayer;->getInterfaceName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2, v0}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    move v1, v3

    .line 75
    goto :goto_0
.end method

.method public resume()Z
    .locals 4

    .prologue
    const/4 v3, 0x0

    .line 79
    invoke-direct {p0}, Lrexsee/multimedia/RexseeVideoPlayer;->checkStatus()Z

    move-result v1

    if-nez v1, :cond_0

    move v1, v3

    .line 85
    :goto_0
    return v1

    .line 81
    :cond_0
    :try_start_0
    iget-object v1, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mVideoDialog:Lrexsee/multimedia/VideoDialog;

    iget-object v1, v1, Lrexsee/multimedia/VideoDialog;->videoView:Lrexsee/multimedia/VideoView;

    iget-object v1, v1, Lrexsee/multimedia/VideoView;->mediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v1}, Landroid/media/MediaPlayer;->start()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 82
    const/4 v1, 0x1

    goto :goto_0

    .line 83
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 84
    .local v0, "e":Ljava/lang/Exception;
    iget-object v1, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/multimedia/RexseeVideoPlayer;->getInterfaceName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2, v0}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    move v1, v3

    .line 85
    goto :goto_0
.end method

.method public seekTo(I)Z
    .locals 4
    .param p1, "milliseconds"    # I

    .prologue
    const/4 v3, 0x0

    .line 89
    invoke-direct {p0}, Lrexsee/multimedia/RexseeVideoPlayer;->checkStatus()Z

    move-result v1

    if-nez v1, :cond_0

    move v1, v3

    .line 95
    :goto_0
    return v1

    .line 91
    :cond_0
    :try_start_0
    iget-object v1, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mVideoDialog:Lrexsee/multimedia/VideoDialog;

    iget-object v1, v1, Lrexsee/multimedia/VideoDialog;->videoView:Lrexsee/multimedia/VideoView;

    iget-object v1, v1, Lrexsee/multimedia/VideoView;->mediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v1, p1}, Landroid/media/MediaPlayer;->seekTo(I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 92
    const/4 v1, 0x1

    goto :goto_0

    .line 93
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 94
    .local v0, "e":Ljava/lang/Exception;
    iget-object v1, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/multimedia/RexseeVideoPlayer;->getInterfaceName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2, v0}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    move v1, v3

    .line 95
    goto :goto_0
.end method

.method public setVolume(F)Z
    .locals 5
    .param p1, "volume"    # F

    .prologue
    const/4 v3, 0x3

    const/4 v4, 0x0

    .line 145
    const/4 v1, 0x0

    cmpg-float v1, p1, v1

    if-ltz v1, :cond_0

    const/high16 v1, 0x3f800000    # 1.0f

    cmpl-float v1, p1, v1

    if-lez v1, :cond_1

    .line 146
    :cond_0
    iget-object v1, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/multimedia/RexseeVideoPlayer;->getInterfaceName()Ljava/lang/String;

    move-result-object v2

    const-string v3, "The volumn must between 0 and 1."

    invoke-virtual {v1, v2, v3}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    move v1, v4

    .line 151
    :goto_0
    return v1

    .line 149
    :cond_1
    iget-object v1, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mContext:Landroid/content/Context;

    const-string v2, "audio"

    invoke-virtual {v1, v2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/media/AudioManager;

    .line 150
    .local v0, "mAudioManager":Landroid/media/AudioManager;
    invoke-virtual {v0, v3}, Landroid/media/AudioManager;->getStreamMaxVolume(I)I

    move-result v1

    int-to-float v1, v1

    mul-float/2addr v1, p1

    invoke-static {v1}, Ljava/lang/Math;->round(F)I

    move-result v1

    invoke-virtual {v0, v3, v1, v4}, Landroid/media/AudioManager;->setStreamVolume(III)V

    .line 151
    const/4 v1, 0x1

    goto :goto_0
.end method

.method public start(Ljava/lang/String;Ljava/lang/String;Z)Z
    .locals 6
    .param p1, "url"    # Ljava/lang/String;
    .param p2, "style"    # Ljava/lang/String;
    .param p3, "looping"    # Z

    .prologue
    .line 45
    invoke-virtual {p0}, Lrexsee/multimedia/RexseeVideoPlayer;->stop()Z

    .line 46
    iget-object v0, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->urlListeners:Lrexsee/core/browser/RexseeUrl;

    invoke-virtual {v0, p1}, Lrexsee/core/browser/RexseeUrl;->getAbsoluteUrl(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 47
    new-instance v0, Lrexsee/multimedia/VideoDialog;

    iget-object v1, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mBrowser:Lrexsee/core/browser/Browser;

    const/4 v2, 0x0

    move-object v3, p1

    move-object v4, p2

    move v5, p3

    invoke-direct/range {v0 .. v5}, Lrexsee/multimedia/VideoDialog;-><init>(Lrexsee/core/browser/Browser;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V

    iput-object v0, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mVideoDialog:Lrexsee/multimedia/VideoDialog;

    .line 48
    iget-object v0, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mVideoDialog:Lrexsee/multimedia/VideoDialog;

    invoke-virtual {v0}, Lrexsee/multimedia/VideoDialog;->start()V

    .line 49
    const/4 v0, 0x1

    return v0
.end method

.method public stop()Z
    .locals 4

    .prologue
    const/4 v3, 0x1

    .line 52
    iget-object v1, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mVideoDialog:Lrexsee/multimedia/VideoDialog;

    if-nez v1, :cond_0

    move v1, v3

    .line 64
    :goto_0
    return v1

    .line 54
    :cond_0
    :try_start_0
    iget-object v1, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mVideoDialog:Lrexsee/multimedia/VideoDialog;

    iget-object v1, v1, Lrexsee/multimedia/VideoDialog;->videoView:Lrexsee/multimedia/VideoView;

    iget-object v1, v1, Lrexsee/multimedia/VideoView;->mediaPlayer:Landroid/media/MediaPlayer;

    if-eqz v1, :cond_1

    .line 55
    iget-object v1, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mVideoDialog:Lrexsee/multimedia/VideoDialog;

    iget-object v1, v1, Lrexsee/multimedia/VideoDialog;->videoView:Lrexsee/multimedia/VideoView;

    iget-object v1, v1, Lrexsee/multimedia/VideoView;->mediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v1}, Landroid/media/MediaPlayer;->stop()V

    .line 56
    iget-object v1, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mVideoDialog:Lrexsee/multimedia/VideoDialog;

    iget-object v1, v1, Lrexsee/multimedia/VideoDialog;->videoView:Lrexsee/multimedia/VideoView;

    iget-object v1, v1, Lrexsee/multimedia/VideoView;->mediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v1}, Landroid/media/MediaPlayer;->release()V

    .line 57
    iget-object v1, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mVideoDialog:Lrexsee/multimedia/VideoDialog;

    iget-object v1, v1, Lrexsee/multimedia/VideoDialog;->videoView:Lrexsee/multimedia/VideoView;

    const/4 v2, 0x0

    iput-object v2, v1, Lrexsee/multimedia/VideoView;->mediaPlayer:Landroid/media/MediaPlayer;

    .line 59
    :cond_1
    iget-object v1, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mVideoDialog:Lrexsee/multimedia/VideoDialog;

    invoke-virtual {v1}, Lrexsee/multimedia/VideoDialog;->dismiss()V

    .line 60
    const/4 v1, 0x0

    iput-object v1, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mVideoDialog:Lrexsee/multimedia/VideoDialog;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move v1, v3

    .line 61
    goto :goto_0

    .line 62
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 63
    .local v0, "e":Ljava/lang/Exception;
    iget-object v1, p0, Lrexsee/multimedia/RexseeVideoPlayer;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/multimedia/RexseeVideoPlayer;->getInterfaceName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2, v0}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    .line 64
    const/4 v1, 0x0

    goto :goto_0
.end method
